<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>添加图书</title>
    <style>
        body {
            background-color:darkkhaki;
        }

        table {
            position: relative;
            margin-top: 60px;
            background-color: coral;

        }

        .p1 {
            text-align: center;
            font-size: 25px;
        }

        .p2 {
            height: 35px;
            width: 35px;
        }

        #b1 {
            left: 25px;
        }

        #b2 {
            right: 25px;
        }

        #b1,
        #b2 {
            bottom: 10px;
            height: 28px;
            width: 50px;
            position: absolute;
        }
        #cl {
            width: 150px;
            height: 20px;
        }

    </style>
</head>

<body>
<table border="2px" cellpadding="5px" cellspacing="5px" align="center">
    <form action="BookServlet?method=addBooks" method="post" enctype="multipart/form-data">
<%--        <input type="hidden" name="method" value="addBooks">--%>
        <tr>
            <td colspan="2" class="p1">添加新图书</td>
        </tr>
        <tr>
            <td>书名：</td>
            <td><input type="text" name="sname" placeholder="请输入书名" required></td>
        </tr>
        <tr>
            <td>价格：</td>
            <td><input type="text" name="price" placeholder="请输入价格"></td>
        </tr>
        <tr>
            <td>作者：</td>
            <td><input type="text" name="auther" placeholder="新书作者"></td>
        </tr>
        <tr>
            <td>出版社：</td>
            <td><input type="text" name="phouse" placeholder="例如：作家出版社"></td>
        </tr>
        <tr>
            <td>出版日期：</td>
            <td><input type="text" name="dtime" placeholder="例如：2000-10-01"></td>
        </tr>
        <tr>
            <td>数量：</td>
            <td><input type="text" name="bcount"></td>
        </tr>
        <tr>
            <td>售否：</td>
            <td>
                <input type="radio" value="非卖品" name="nsale">非卖品
                <input type="radio" value="在售" name="nsale">在售
            </td>
        </tr>
        <tr>
            <td>图书种类：</td>
            <td>
                <select name="classify" id="cl">
                    <option value="0">图书种类</option>
                    <option value="1">小说</option>
                    <option value="2">儿童读物</option>
                    <option value="3">摄影绘画</option>
                    <option value="4">非小说类</option>
                    <option value="5">科技类</option>
                </select>
            </td>
        </tr>
        <tr>
            <td>支持语言：</td>
            <td>
                <input type="checkbox" name = "lang" value="汉语">汉语
                <input type="checkbox" name = "lang" value="英语">英语
                <input type="checkbox" name = "lang" value="法语">法语
                <input type="checkbox" name = "lang" value="俄语">俄语
            </td>
        </tr>
        <tr>
            <td>添加封面：</td>
            <td>
                <input type="file" name="cover">
            </td>
        </tr>
        <tr>
            <td colspan="2" class="p2">
                <input type="submit" value="添加" id="b1">
                <input type="button" value="取消" id="b2" onclick="history.back()">
            </td>
        </tr>
    </form>
</table>

</body>
</html>
